Ext.define('cp.view.ui.LoginWin',{
    extend: 'Ext.window.Window',
    alias: 'widget.login_win',
    
    closable: false,
    resizable: false,
    minimizable: false,
    
    initComponent: function(){
        
        var form = Ext.create('cp.view.ui.LoginForm',{});
        this.title = "Iniciar sesión";
        this.items = form;
        
        this.buttons = [
            {text:'Iniciar', action:'submit'}
        ];
        
        this.callParent(arguments);
    },
    submitForm: function(){
        this.getComponent(0).submitForm();
    }
});